package Averagescore;

import java.util.ArrayList;
import java.util.List;

public class StuApp {
    static List<Student> list=new ArrayList<>();
    public static void main(String[] args) {
        init();
        double ret= Tools.getAvg(list);
        System.out.println("平均分是"+ret);
        //不及格的学生
        List<Student> stus= Tools.getScore(list);
        System.out.println();
    }
    //数据初始化
    public static  void init(){
        list.add(new Student("唐凯悦","41926081",90));
        list.add(new Student("彭真","41926084",78));
        list.add(new Student("阎佳","41926022",91));
        list.add(new Student("汪龙","41926010",87));
        list.add(new Student("李安典","41926038",91));
        list.add(new Student("李泽轩","41926006",92));
    }
}


